<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */
$indo = lang() == "id";
//echo $indo ? "<h1>Hubungi Kami</h1>" : "<h1>Contact Us</h1>";
?>
<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>
<?php else: ?>

<div class="fontcolor1668b1 fontfamcalibry font24" style="padding:3px 15px">
<b>HUBUNGI KAMI</b>
</div>
 <div style="padding-top:10px;padding-left: 15px;">
<div class="fontcolorbiru0b5fa5 font12 fontfamcalibry">
<b>Jika anda ingin menghubungi kami atau memiliki pertanyaan, silahkan isi kolom di bawah ini. Terima kasih.</b>
</div>

<div class="form" >

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<div class="fontcolor1668b1 font12 fontfamcalibry"><b>Isian bertanda<span class="required"> *</span> wajib diisi.</b></div>

	<?php echo $form->errorSummary($model); ?>
  <table border="0" >	
		<tr>
			<td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b><?php echo $form->labelEx($model,'name'); ?>            
            </b></div></td>
  	        <td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b>:</b></div></td>
			<td valign="top"><?php echo $form->textField($model,'name'); ?></td>
          
		</tr>
		<tr>
			<td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b><?php echo $form->labelEx($model,'email'); ?></b></div></td>
            <td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b>:</b></div></td>
			<td valign="top"><?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>128)); ?></td>
		</tr>

        <tr>
			<td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b><?php echo $form->labelEx($model,'subject'); ?></b></div></td>
            <td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b>:</b></div></td>
			<td valign="top">	<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?></td>
		</tr>
        <tr>
			<td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b><?php echo $form->labelEx($model,'body'); ?></b></div></td>
            <td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b>:</b></div></td>
			<td valign="top">	<?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?></td>
		</tr>
        	<?php if(CCaptcha::checkRequirements()): ?>
		<tr>
        
			<td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry">	<?php echo $form->labelEx($model,'verifyCode'); ?></div></td>
            <td valign="top"><div class="fontcolorbiru0b5fa5 font12 fontfamcalibry"><b>:</b></div></td>
			<td valign="top"><?php $this->widget('CCaptcha'); ?>
		</td>
        	
		</tr>
        
		<tr>
			<td valign="top"><div class="label"><b></b></div></td>
            <td valign="top"><div class="label"><b></b></div></td>
			<td valign="top"><?php echo $form->textField($model,'verifyCode'); ?></td>
		</tr>
        

        
        	<?php endif; ?>
            
            
		<tr>
			<td valign="top"><div class="label"><b></b></div></td>
            <td valign="top"><div class="label"><b></b></div></td>
			<td valign="top"></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
  	        <td>&nbsp;</td>
			<td>	<?php echo CHtml::submitButton($indo ? 'Kirim' : 'Submit'); ?></td>
		</tr>
	</table>


<?php $this->endWidget(); ?>

</div><!-- form -->
</div>
<?php endif; ?>